E cient Building and Placing of Gating Functions

نویسندگان

  • Peng Tu
  • David Padua
چکیده

The Gated Single-Assignment (GSA) program representation is an extension of the Static Single Assignment (SSA) representation[CFR91]. GSA was introduced by Ballance, Maccabe and Ottenstein as a part of Program Dependence Web (PDW)[BMO90]. It is a convenient representation for several program analysis and optimization techniques, including constant propagation with conditional branches[WZ91]; equality of symbolic expressions[AWZ88, Hav93]; induction variable substitution[Wol92]; symbolic dependence analysis [BE94] and demand-driven symbolic analysis for array privatization[TP94, TP93]. In the SSA representation, functions of a single type are placed at the con uence nodes of a program ow graph to represent di erent de nitions of a variable reaching from di erent incoming edges. The condition under which a de nition reachs a con uence node is not represented in the function. By contrast, in the GSA representation, several types of gating functions are de ned to represent the di erent condition classes at di erent con uence nodes. Some extra parameters are introduced in the gating functions to represent the conditions. In this paper, we present an almost linear time algorithm to construct the GSA. The new algorithm is more e cient and simpler than the existing algorithms for GSA construction [BMO90, Hav93]. Since SSA is a special case of GSA, it can also be used as an e cient alternative algorithm for SSA construction. The existing algorithms for building the GSA follow two steps. The rst step is the same function placement procedure as in the SSA construction[CFR91]. In the second step, the GSA conversion algorithms collect the control dependences of the de nitions reaching a function and transforms the function into a gating function. The original GSA conversion algorithm[BMO90] assumed a Program Dependence Graph (PDG)[FOW87] as its initial representation. Havlak developed another algorithm[Hav93] to construct a variant of the GSA, known as Thinned GSA. Because it starts with the program ow graph, it is, therefore, somewhat simpler. For each function, both algorithms traverse the control ow graph to nd the gating conditions for each reaching de nition. To convert a function to a gating function, O(E) edges may be visited (where E is the number of edges in the ow graph). Since the number of functions in the program is O(N ) (where N is the number of nodes in the program), and the same edge may be visited for every function, the time complexity of these algorithms is O(E N ). The algorithm in this paper constructs and places the gating functions from a program control ow graph in a single step. In our algorithm, SSA and GSA constructions are uni ed under a single process of gating path construction. It uses the path compression technique[Tar79] to reduce the total number of visits to the edges in the ow graph. Tarjan describes two ways to implement the path compression. A simple method has an O(E log(N )) time bound; a sophisticated o -line algorithm maintaining balanced subtrees has an O(E (E;N )) time bound. Yet another on-line O(E (E;N ))

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A new circuit model for the Parameters in equations of low power Hodgkin-Huxley neuron cell

In this paper, α and β parameters and gating variables equations of Hodgkin-Huxley neuron cell have been studied. Gating variables show opening and closing rate of ion flow of calcium and potassium in neuron cell. Variable functions α and β, are exponential functions in terms of u potential that have been obtained by Hodgkin and Huxley experimentally to adjust the equations of neural cells. In ...

متن کامل

Evaluation of E-Trust Building Structures Interact With Transportation

Transportation industry is the most dynamic components of any society. In the twenty-first century, with the growth of technology and the widespread use of the Internet and the emergence of e-commerce and e-business interaction and active transportation industry deserves to have a wide range of electronic services to the transportation community to take advantage of the investors of the new and...

متن کامل

CAS WAVELET METHOD FOR THE NUMERICAL SOLUTION OF BOUNDARY INTEGRAL EQUATIONS WITH LOGARITHMIC SINGULAR KERNELS

In this paper, we present a computational method for solving boundary integral equations with loga-rithmic singular kernels which occur as reformulations of a boundary value problem for the Laplacian equation. Themethod is based on the use of the Galerkin method with CAS wavelets constructed on the unit interval as basis.This approach utilizes the non-uniform Gauss-Legendre quadrature rule for ...

متن کامل

The Effects of Gating Systems on the Soundness of Lost Foam Casting (LFC) Process of Al-Si Alloy (A.413.0)

The effects of gating systems, number of runner, and their locations, in the Lost Foam Casting (LFC) of Aluminum alloy (A.413.0) were investigated. Six different gating systems, with one or two running systems were designed. X-ray radiography and the three axis-bending tests have been employed to evaluate the casting soundness and quality. The results revealed that gating systems have a major e...

متن کامل

The Efficiency of Respiratory-gated 18F-FDG PET/CT in Lung Adenocarcinoma: Amplitude-gating Versus Phase-gating Methods

Objective(s): In positron emission tomography (PET) studies, thoracic movement under free-breathing conditions is a cause of image degradation. Respiratory gating (RG) is commonly used to solve this problem. Two different methods, i.e., phase-gating (PG) and amplitude-gating (AG) PET, are available for respiratory gating. It is important to know the strengths and weaknesses of both methods when...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1995